package com.atguigu;

import com.atguigu.client.CannalClient;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.Resource;

@SpringBootApplication
public class CannalApplication implements CommandLineRunner {
    @Resource
    private CannalClient client;

    public static void main(String[] args) {
        SpringApplication.run(CannalApplication.class,args);
    }

    @Override
    public void run(String... args) throws Exception {
        client.run();
    }
}
